const Path = require('path');
const Fs = require('fs');
exports.template = Fs.readFileSync(Path.join(__dirname, 'index.html'), 'utf-8');

exports.$ = {
    btn: '#btn',
    input: '#input'
}

exports.ready = async function () {
    this.$.btn.addEventListener('click', async () => {
        let data = this.$.input.value;
        Editor.Message.send('hello-world', 'panel1-panel2-data', data)
    });
}


